﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ExamList.aspx.cs" Inherits="ExamV5.OnlineExam.ExamList" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title></title>
    <meta http-equiv="Content-Language" content="zh-cn" />
	<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
	
    <link href="../Image/STYLE.CSS" rel="stylesheet" type="text/css" />
	<script language="JavaScript" charset="gb2312" src="../Image/calendar.js"></script>
    <script type="text/javascript" language="javascript">
        function SubmitKeyClick(button) {
            if (event.keyCode == 13) {
                event.keyCode = 9;
                event.returnValue = false;
                document.all[button].click();
            }
        }

        function SetLastExam(strID) {
            var strURL = "FrmSetLastExam.aspx?ID=" + strID + "";

            var iWidth = 660;
            var iHeight = 600;
            var iTop = (window.screen.availHeight - 30 - iHeight) / 2;
            var iLeft = (window.screen.availWidth - 10 - iWidth) / 2;
            window.open(strURL, "设置补考参数", "height=" + iHeight + ", width=" + iWidth + ", top=" + iTop + ", left=" + iLeft + ",toolbar=no,menubar=no,scrollbars=yes,resizable=no, location=no,status=no");
        }

        function AddJoinExamUser(strID) {
            var strURL = "FrmLastAddExamUser.aspx?ID=" + strID + "";
            var iWidth = 660;
            var iHeight = 600;
            var iTop = (window.screen.availHeight - 30 - iHeight) / 2;
            var iLeft = (window.screen.availWidth - 10 - iWidth) / 2;
            window.open(strURL, "补录参加考试人员名单", "height=" + iHeight + ", width=" + iWidth + ", top=" + iTop + ", left=" + iLeft + ",toolbar=no,menubar=no,scrollbars=yes,resizable=no, location=no,status=no");
        }

        function ShowPaperInfo(strID) {
            var strURL = "ShowPaperInfo.aspx?ID=" + strID + "";

            var iWidth = 660;
            var iHeight = 600;
            var iTop = (window.screen.availHeight - 30 - iHeight) / 2;
            var iLeft = (window.screen.availWidth - 10 - iWidth) / 2;
            window.open(strURL, "查看试卷详细信息", "height=" + iHeight + ", width=" + iWidth + ", top=" + iTop + ", left=" + iLeft + ",toolbar=no,menubar=no,scrollbars=yes,resizable=no, location=no,status=no");
        }
		</script>
</head>
<body>
    <form id="Form1" runat="server">
     <asp:ScriptManager ID="SM" runat="server">
                        </asp:ScriptManager>
                        <asp:UpdatePanel ID="UPPart" runat="server">
                           <ContentTemplate>

    <table cellSpacing="0" cellPadding="0" border="0">
	    <tr>
		   <td width=37><img src="../image/BobyTip.gif" border="0" /></td>
           <td>当前位置：<a href='../FrmMain.aspx'>系统首页</a> >  在线监控中心 > 考试监考管理</td>
	    </tr>
        </table>
        <table cellSpacing="0" cellPadding="0" border="0" width="100%">
        <tr>
           <td  height=51  background="../image/BobyModNameBG.gif">
                    <table cellSpacing="0" cellPadding="0" border="0">
                        <tr>
                            <td width=5></td>
                            <td width="133"  background="../image/HeadLocalAB.gif" height="41" align="center"><a href='ExamList.aspx'  onfocus='this.blur();'><img src="../image/MenuICO/Menu29.gif" border="0" style='POSITION:relative;TOP:3px'> <font color="#ffffff"><b>考试监考管理</b></font></a></td>
                            <td width="133"  background="../image/HeadTitleAB.gif" height="41" align="center"><a href='StudyList.aspx'  onfocus='this.blur();'><img src="../image/MenuICO/Choose61.gif" border="0" style='POSITION:relative;TOP:3px'> <font color="#ffffff"><b>练习监控管理</b></font></a></td>
                            
                        </tr>
                   </table>
            </td>
         </tr>
         <tr>
            <td  height=33  background="../image/QueryBG.gif" align="right">
                        <table cellSpacing="0" cellPadding="0" border="0">
                            <tr>
                                <td>
                                    <!--查询区-->
                                    生成时间:</td><td><asp:TextBox id="txtStartDate" runat="server" Width="80px" CssClass="text" onclick="calendar(this)" 
										Height="23"></asp:TextBox>—<asp:TextBox id="txtEndDate" runat="server" Width="80px" CssClass="text" onclick="calendar(this)" 
										Height="23"></asp:TextBox></td>
                                <td><asp:DropDownList id="DDLSubject" style="height:26px;"  runat="server" AutoPostBack="True" onselectedindexchanged="DDLSubject_SelectedIndexChanged">
							</asp:DropDownList><asp:dropdownlist id="DDLQuery" runat="server" style="height:26px;" >
								<asp:ListItem Value="ExamName">考试名称</asp:ListItem>
							    <asp:ListItem Value="PaperFen">试卷总分</asp:ListItem>
							    <asp:ListItem Value="InputMan">创建人员</asp:ListItem>
							</asp:dropdownlist></td><td><asp:TextBox ID="txtQuery" runat="server" CssClass="text"  Height="23" Width="150"></asp:TextBox></td>
                                        <td><asp:Button ID="butQuery" runat="server"  Text="查  询" style='POSITION:relative;TOP:-2px' CssClass="but2G" onclick="butQuery_Click"/>&nbsp;</td>  
                                   </tr>
                        </table>     
            </td>
         </tr>
         <tr>
                <td>
                                    <!--数据列表区-->
                                    <asp:GridView ID="DataGridInfo" runat="server" AllowPaging="True"  
                                            onpageindexchanging="DataGridInfo_PageIndexChanging" 
                                            AutoGenerateColumns="False" CellPadding="10" BorderWidth="1px" Width="100%" 
                                            CssClass="tableStyle" BackColor="White" PageSize="10" 
                                            AllowSorting="True" onsorting="DataGridInfo_Sorting"  
                                            onrowdatabound="DataGridInfo_RowDataBound" 
                                            DataKeyNames="PaperStartTime,PaperEndTime,ID,ExamName" >
							            <HeaderStyle Font-Bold="True" HorizontalAlign="Center" CssClass="tabth_bg" ForeColor="#143F61"></HeaderStyle>
							            <FooterStyle ForeColor="#000066" BackColor="White"></FooterStyle>
                                            <Columns>
                                               
                                                <asp:BoundField DataField="ExamName" HeaderText="考试名称"   SortExpression="ExamName">
                                                </asp:BoundField>
                                                <asp:BoundField DataField="SubjectName" HeaderText="所属科目"   SortExpression="SubjectName">
                                                <HeaderStyle Width="150px" />
                                                </asp:BoundField>
                                                <asp:BoundField DataField="PaperFen" HeaderText="总分"  SortExpression="PaperFen" >
                                                <HeaderStyle Width="35px" />
                                                <ItemStyle HorizontalAlign="Center" />
                                                </asp:BoundField>
                                                <asp:BoundField DataField="ExamTime" HeaderText="时长"  SortExpression="ExamTime" >
                                                <HeaderStyle Width="35px" />
                                                <ItemStyle HorizontalAlign="Center" />
                                                </asp:BoundField>
                                                <asp:TemplateField HeaderText="未考">
                                                    <ItemTemplate>
                                                        <asp:Label id="labNoExam" runat="server">0</asp:Label>
                                                    </ItemTemplate>
                                                    <HeaderStyle Width="40px" />
                                                </asp:TemplateField>
                                               <asp:TemplateField HeaderText="正考">
                                                    <ItemTemplate>
                                                        <asp:Label id="labExaming" runat="server">0</asp:Label>
                                                    </ItemTemplate>
                                                    <HeaderStyle Width="40px" />
                                                </asp:TemplateField>
                                                <asp:TemplateField HeaderText="考完">
                                                    <ItemTemplate>
                                                        <asp:Label id="labExamed" runat="server">0</asp:Label>
                                                    </ItemTemplate>
                                                    <HeaderStyle Width="40px" />
                                                </asp:TemplateField>
                                                <asp:TemplateField HeaderText="共计">
                                                    <ItemTemplate>
                                                        <asp:Label id="labCountExam" runat="server">0</asp:Label>
                                                    </ItemTemplate>
                                                    <HeaderStyle Width="40px" />
                                                </asp:TemplateField>
                                            </Columns>
                                        <PagerStyle HorizontalAlign="Right" />
           
                                     </asp:GridView>
                                    </td>
                                </tr>
                                
                                <tr height="25">
                                    <td><br />
                                    <!--分页区-->
                                        <table border="0" width="100%" cellpadding="0" cellspacing="0">
										<tr>
											<td align="left">&nbsp;<font color=red>注:点击相关人数值可查看具体明细人员列表</font></td>
											<td align="right"><asp:label id="labRescordCount" runat="server">总共&nbsp;<font color='#0000C0'><B>0</B></font>&nbsp;条记录&nbsp;<font color='#0000C0'><B>1/1</B></font>&nbsp;页&nbsp;</asp:label>
												<asp:LinkButton id="LBFirstPage" runat="server" onclick="LBFirstPage_Click">第一页</asp:LinkButton>&nbsp;
												<asp:LinkButton id="LBPrevPage" runat="server" onclick="LBPrevPage_Click">上一页</asp:LinkButton>&nbsp;
												<asp:LinkButton id="LBNextPage" runat="server" onclick="LBNextPage_Click">下一页</asp:LinkButton>&nbsp;
												<asp:LinkButton id="LBLastPage" runat="server" onclick="LBLastPage_Click">最后页</asp:LinkButton>&nbsp;</td>
										</tr>
									    </table>
                                    </td>
                                </tr>
                                </table>
					 
             </ContentTemplate>
       </asp:UpdatePanel>
    </form>
   
</body>
</html>